Skip to content

Commit

Permalink
build: Use setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Dec 2, 2022
1 parent be1030c commit 00d44e7
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.py
cache-dependency-path: setup.cfg
- run: pip install .[test]
- run: pytest -W error --cov jscc --vcr-record=none
- env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
python-version: 3.8
cache: pip
cache-dependency-path: setup.py
cache-dependency-path: setup.cfg
- run: curl -s -S --retry 3 $BASEDIR/tests/install.sh | bash -
- run: curl -s -S --retry 3 $BASEDIR/tests/script.sh | bash -
- run: pip install .[test]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.8
- run: pip install --upgrade setuptools wheel
- run: python setup.py sdist bdist_wheel
- run: pip install --upgrade build setuptools wheel
- run: python -m build --sdist --wheel
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
45 changes: 45 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[metadata]
name = jscc
version = 0.1.0
author = Open Contracting Partnership and Open Data Services Co-operative Limited
author_email = data@open-contracting.org
license = BSD
description = Tools for data standards that use JSON Schema and CSV codelists
url = https://github.com/open-contracting/jscc
long_description = file: README.rst
classifiers =
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy

[options]
packages = find:
install_requires =
json-merge-patch
jsonref>=1
jsonschema
requests
rfc3339-validator
rfc3986-validator

[options.packages.find]
exclude =
tests
tests.*

[options.extras_require]
test =
coveralls
pytest
pytest-cov
pytest-vcr
docs =
furo
sphinx
sphinx-autobuild
49 changes: 0 additions & 49 deletions setup.py

This file was deleted.

0 comments on commit 00d44e7

Please sign in to comment.