diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 2c467c5..d8defd5 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -12,8 +12,7 @@ on: - cron: 53 3 * * 0 jobs: - build: - + tests: runs-on: ubuntu-latest strategy: matrix: diff --git a/.gitignore b/.gitignore index 533ef3c..dd49f76 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,5 @@ dist/ docs/_build htmlcov/ output/ +sigal/version.py tags diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0d09a82 --- /dev/null +++ b/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" diff --git a/setup.cfg b/setup.cfg index aea490c..f9ae955 100644 --- a/setup.cfg +++ b/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 diff --git a/setup.py b/setup.py index 6efdcc1..8bf1ba9 100644 --- a/setup.py +++ b/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()