Browse Source

Migrate to PEP517

pull/405/head
Simon Conseil 6 years ago
parent
commit
709ab67348
  1. 3
      .github/workflows/python-tests.yml
  2. 1
      .gitignore
  3. 6
      pyproject.toml
  4. 2
      setup.cfg
  5. 8
      setup.py

3
.github/workflows/python-tests.yml

@ -12,8 +12,7 @@ on:
- cron: 53 3 * * 0
jobs:
build:
tests:
runs-on: ubuntu-latest
strategy:
matrix:

1
.gitignore vendored

@ -15,4 +15,5 @@ dist/
docs/_build
htmlcov/
output/
sigal/version.py
tags

6
pyproject.toml

@ -0,0 +1,6 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "sigal/version.py"

2
setup.cfg

@ -26,8 +26,6 @@ zip_safe = False
include_package_data = True
packages = find:
python_requires = >=3.6
setup_requires =
setuptools_scm
install_requires =
blinker
click

8
setup.py

@ -1,8 +1,2 @@
import sys
from setuptools import setup
if sys.version_info[:2] < (3, 6):
sys.exit('Sigal supports Python 3.6+ only')
setup(use_scm_version=True)
setup()

Loading…
Cancel
Save