Skip to content

Commit

Permalink
port to Ctl
Browse files Browse the repository at this point in the history
  • Loading branch information
grizz committed Jan 17, 2019
1 parent 9b59129 commit e5504d4
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 13 deletions.
File renamed without changes.
18 changes: 18 additions & 0 deletions Ctl/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ctl:
permissions:
- namespace: "ctl"
permission: "r"

plugins:
- name: this_repo
type: git
config:
repo_url: git@github.com:20c/pytest-filedata.git

- name: version
type: version
config:
branch_dev: master
branch_release: master
repositories:
- this_repo
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include LICENSE
recursive-include facsimile *.txt
recursive-include Ctl *.txt
recursive-include pytest_filedata *.py
include facsimile/VERSION
include Ctl/VERSION
23 changes: 15 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@
from setuptools import find_packages, setup


version = open('facsimile/VERSION').read().strip()
requirements = open('facsimile/requirements.txt').read().split("\n")
test_requirements = open('facsimile/requirements-test.txt').read().split("\n")
def read_file(name):
with open(name) as fobj:
return fobj.read().strip()


LONG_DESCRIPTION = read_file("README.md")
VERSION = read_file("Ctl/VERSION")
REQUIREMENTS = read_file("Ctl/requirements.txt").split('\n')
TEST_REQUIREMENTS = read_file("Ctl/requirements-test.txt").split('\n')


setup(
name='pytest_filedata',
version=version,
version=VERSION,
author='20C',
author_email='code@20c.com',
description='easily load data from files',
long_description='',
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
license='LICENSE.txt',
classifiers=[
'Development Status :: 4 - Beta',
Expand All @@ -30,10 +37,10 @@
packages = find_packages(),
include_package_data=True,
url='https://github.com/20c/pytest-filedata',
download_url='https://github.com/20c/pytest-filedata/%s' % version,
download_url='https://github.com/20c/pytest-filedata/archive/{}.zip'.format(VERSION),

install_requires=requirements,
test_requires=test_requirements,
install_requires=REQUIREMENTS,
test_requires=TEST_REQUIREMENTS,

zip_safe=True,
entry_points={
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ passenv = CI TRAVIS*
deps =
pytest3: pytest>=3, <4
pytest4: pytest>=4, <5
-r{toxinidir}/facsimile/requirements.txt
-r{toxinidir}/facsimile/requirements-test.txt
-r{toxinidir}/Ctl/requirements.txt
-r{toxinidir}/Ctl/requirements-test.txt
commands = pytest --cov-report=term-missing --cov-report=xml --cov={envsitepackagesdir}/pytest_filedata


[pytest]
norecursedirs = .facsimile data gen .tox
norecursedirs = Ctl data gen .tox

0 comments on commit e5504d4

Please sign in to comment.