-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
104 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,46 @@ | ||
Releasing clld-audio-plugin | ||
=========================== | ||
|
||
- PEP8 | ||
```shell | ||
flake8 src | ||
``` | ||
|
||
- Do platform test via tox (making sure statement coverage is at 100%): | ||
``` | ||
tox -r | ||
``` | ||
```shell | ||
tox -r | ||
``` | ||
|
||
- Change setup.py version to the new version number. | ||
|
||
- Bump version number: | ||
``` | ||
git commit -a -m"<VERSION>" | ||
``` | ||
``` | ||
git commit -a -m"<VERSION>" | ||
``` | ||
|
||
- Create a release tag: | ||
``` | ||
git tag -a v<VERSION> -m"release <VERSION>" | ||
``` | ||
``` | ||
git tag -a v<VERSION> -m"release <VERSION>" | ||
``` | ||
|
||
- Release to PyPI: | ||
``` | ||
python setup.py clean --all | ||
rm dist/* | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
``` | ||
``` | ||
python setup.py clean --all | ||
rm dist/* | ||
python -m build -n | ||
twine upload dist/* | ||
``` | ||
|
||
- Push to github: | ||
``` | ||
git push origin | ||
git push --tags | ||
``` | ||
```shell | ||
git push origin | ||
git push --tags | ||
``` | ||
|
||
- Append `.dev0` to the version number in `setup.py` for the new development cycle. | ||
|
||
- Commit/push the version change: | ||
```shell | ||
git commit -a -m "bump version for development" | ||
git push origin | ||
``` | ||
```shell | ||
git commit -a -m "bump version for development" | ||
git push origin | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,85 @@ | ||
[metadata] | ||
name = clld-audio-plugin | ||
version = 1.0.1.dev0 | ||
license_file = LICENSE | ||
author = Robert Forkel | ||
author_email = [email protected] | ||
classifiers = | ||
Development Status :: 2 - Pre-Alpha | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: Apache Software License | ||
Natural Language :: English | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Programming Language :: Python :: 3.12 | ||
description = Render linked audio files in clld apps. | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
project_urls = | ||
Bug Tracker = https://github.com/clld/clld-audio-plugin/issues | ||
url = https://github.com/clld/clld-audio-plugin | ||
|
||
[options] | ||
zip_safe = False | ||
include_package_data = True | ||
packages = find: | ||
package_dir = | ||
=src | ||
install_requires = | ||
clld>=7 | ||
sqlalchemy | ||
zope.interface | ||
|
||
[options.extras_require] | ||
dev = | ||
flake8 | ||
twine | ||
wheel | ||
build | ||
test = | ||
pytest | ||
pytest-mock | ||
pytest-cov | ||
tox | ||
webtest | ||
|
||
[options.packages.find] | ||
include = clld_audio_plugin | ||
where = src | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[easy_install] | ||
zip_ok = false | ||
|
||
[tool:pytest] | ||
addopts = --cov | ||
testpaths = tests | ||
filterwarnings = | ||
ignore::sqlalchemy.exc.RemovedIn20Warning | ||
|
||
[tox:tox] | ||
envlist = py38, py39, py310, py311, py312 | ||
isolated_build = true | ||
skip_missing_interpreter = true | ||
|
||
[testenv] | ||
deps = .[test] | ||
commands = pytest {posargs} | ||
|
||
[flake8] | ||
ignore = E711,E712,D100,D101,D103,D102,D301 | ||
max-line-length = 100 | ||
exclude = .tox | ||
|
||
[tool:pytest] | ||
minversion = 5 | ||
testpaths = tests | ||
addopts = | ||
--cov | ||
|
||
[coverage:run] | ||
source = | ||
clld_audio_plugin | ||
tests | ||
|
||
[coverage:report] | ||
show_missing = true | ||
|
||
[easy_install] | ||
zip_ok = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,3 @@ | ||
from setuptools import setup, find_packages | ||
from setuptools import setup | ||
|
||
setup( | ||
name='clld-audio-plugin', | ||
version='1.0.1.dev0', | ||
description='clld-audio-plugin', | ||
classifiers=[ | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Framework :: Pyramid", | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application", | ||
], | ||
author='Robert Forkel', | ||
author_email='[email protected]', | ||
url='https://github.com/clld/clld-audio-plugin', | ||
keywords='web pyramid pylons', | ||
packages=find_packages(where="src"), | ||
package_dir={"": "src"}, | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=[ | ||
'clld>=7', | ||
'sqlalchemy', | ||
'zope.interface', | ||
], | ||
extras_require={ | ||
'dev': ['flake8', 'wheel', 'twine'], | ||
'test': [ | ||
'pytest>=5', | ||
'pytest-mock', | ||
'coverage>=4.2', | ||
'pytest-cov', | ||
'webtest', | ||
], | ||
}, | ||
license="Apache 2.0", | ||
) | ||
setup() |