mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
misc packaging updates
This commit is contained in:
parent
788f4036df
commit
2ca615d19b
6 changed files with 46 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -27,6 +27,7 @@ var/
|
||||||
*.egg
|
*.egg
|
||||||
.eggs/
|
.eggs/
|
||||||
.pytest_cache/
|
.pytest_cache/
|
||||||
|
.ipynb_checkpoints/
|
||||||
|
|
||||||
# source dirs have to be explicitly added
|
# source dirs have to be explicitly added
|
||||||
src/
|
src/
|
||||||
|
|
|
||||||
|
|
@ -47,18 +47,20 @@ script:
|
||||||
# dependencies separately.
|
# dependencies separately.
|
||||||
- python -m pip install $(cat requirements.txt)
|
- python -m pip install $(cat requirements.txt)
|
||||||
- python -m pip install $(cat requirements-test.txt)
|
- python -m pip install $(cat requirements-test.txt)
|
||||||
|
# lint
|
||||||
- python -m flake8 src/pycalver/
|
- python -m flake8 src/pycalver/
|
||||||
- MYPYPATH=stubs/ python -m mypy src/pycalver/
|
- MYPYPATH=stubs/ python -m mypy src/pycalver/
|
||||||
|
# doc
|
||||||
- rst2html5 --strict README.rst > /dev/null
|
- rst2html5 --strict README.rst > /dev/null
|
||||||
- rst2html5 --strict CHANGELOG.rst > /dev/null
|
- rst2html5 --strict CHANGELOG.rst > /dev/null
|
||||||
|
# test repo src/
|
||||||
- PYTHONPATH=src/:$PYTHONPATH python -m pytest --cov=pycalver test/
|
- PYTHONPATH=src/:$PYTHONPATH python -m pytest --cov=pycalver test/
|
||||||
- codecov
|
- codecov
|
||||||
|
# build wheel
|
||||||
- python -m pip install lib3to6
|
- python -m pip install lib3to6
|
||||||
- python setup.py bdist_wheel --python-tag=py2.py3
|
- python setup.py bdist_wheel --python-tag=py2.py3
|
||||||
- ls -l dist/*
|
- ls -l dist/*
|
||||||
|
# test wheel
|
||||||
- conda activate cpy27
|
- conda activate cpy27
|
||||||
- python --version
|
- python --version
|
||||||
- python -m pip install $(cat requirements-test.txt)
|
- python -m pip install $(cat requirements-test.txt)
|
||||||
|
|
|
||||||
|
|
@ -3,3 +3,5 @@ pip
|
||||||
twine
|
twine
|
||||||
ipython
|
ipython
|
||||||
pudb
|
pudb
|
||||||
|
py-spy
|
||||||
|
snakeviz
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
flake8
|
flake8
|
||||||
|
flake8-bugbear
|
||||||
mypy
|
mypy
|
||||||
typing-extensions
|
typing-extensions
|
||||||
rst2html5
|
rst2html5
|
||||||
|
|
|
||||||
30
setup.cfg
30
setup.cfg
|
|
@ -1,6 +1,25 @@
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E203,W504
|
ignore =
|
||||||
max-line-length = 110
|
# No whitespace after paren open "("
|
||||||
|
E201,
|
||||||
|
# No whitespace before paren ")"
|
||||||
|
E202,
|
||||||
|
# No whitespace before ":"
|
||||||
|
E203,
|
||||||
|
# Multiple spaces before operator
|
||||||
|
E221
|
||||||
|
# Multiple spaces before keyword
|
||||||
|
E272,
|
||||||
|
# Spaces around keyword/parameter equals
|
||||||
|
E251
|
||||||
|
# Line too long (B950 is used instead)
|
||||||
|
E501,
|
||||||
|
# Line break before binary op
|
||||||
|
W503,
|
||||||
|
# Line break after binary op
|
||||||
|
W504
|
||||||
|
select = C,E,F,W,B,B901,B950
|
||||||
|
max-line-length = 100
|
||||||
exclude = .git,__pycache__,.eggs/,dist/,.mypy_cache
|
exclude = .git,__pycache__,.eggs/,dist/,.mypy_cache
|
||||||
|
|
||||||
[mypy]
|
[mypy]
|
||||||
|
|
@ -9,6 +28,13 @@ disallow_untyped_calls = True
|
||||||
follow_imports = silent
|
follow_imports = silent
|
||||||
strict_optional = True
|
strict_optional = True
|
||||||
|
|
||||||
|
[aliases]
|
||||||
|
test=pytest
|
||||||
|
|
||||||
|
[tool:pytest]
|
||||||
|
addopts = --verbose
|
||||||
|
python_files = test/*.py
|
||||||
|
|
||||||
[bdist_wheel]
|
[bdist_wheel]
|
||||||
universal = 1
|
universal = 1
|
||||||
|
|
||||||
|
|
|
||||||
12
setup.py
12
setup.py
|
|
@ -43,15 +43,21 @@ setuptools.setup(
|
||||||
url="https://github.com/mbarkhau/pycalver",
|
url="https://github.com/mbarkhau/pycalver",
|
||||||
version="201809.2b0",
|
version="201809.2b0",
|
||||||
|
|
||||||
|
keywords="version versioning bumpversion calver",
|
||||||
description="CalVer versioning for python projects",
|
description="CalVer versioning for python projects",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/x-rst",
|
|
||||||
|
|
||||||
packages=packages,
|
packages=packages,
|
||||||
package_dir=package_dir,
|
package_dir=package_dir,
|
||||||
zip_safe=True,
|
zip_safe=True,
|
||||||
install_requires=["typing", "click", "setuptools"],
|
install_requires=["typing", "click"],
|
||||||
setup_requires=["lib3to6==v201809.0017-alpha"],
|
setup_requires=[
|
||||||
|
"lib3to6==v201809.0017-alpha",
|
||||||
|
"pytest-runner",
|
||||||
|
],
|
||||||
|
tests_require=[
|
||||||
|
"pytest",
|
||||||
|
],
|
||||||
entry_points='''
|
entry_points='''
|
||||||
[console_scripts]
|
[console_scripts]
|
||||||
pycalver=pycalver.__main__:cli
|
pycalver=pycalver.__main__:cli
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue