Skip to content

Commit

Permalink
build: use setuptools-scm instead of hard-coded version
Browse files Browse the repository at this point in the history
  • Loading branch information
wwade committed May 22, 2021
1 parent ff7bdb7 commit 5442b06
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ chardet = "*"
dateutils = "*"
importlib-metadata = "*"
requests = "*"
setuptools-scm = ">=3.4"
simplejson = "*"
six = "*"

[requires]
python_version = "3"
python_version = "3.7"
16 changes: 15 additions & 1 deletion Pipfile-2.7.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "d110d426811aa081f07cf700254c4cbcde5bd59d68e162de408d191e32beae12"
"sha256": "c1a38c39339c94b0c7662f1814362258d3a2856981ab4a07d20ac9df1e4b9313"
},
"pipfile-spec": 6,
"requires": {
Expand Down Expand Up @@ -119,6 +119,20 @@
"markers": "python_version < '3.5'",
"version": "==1.10.0"
},
"setuptools-scm": {
"hashes": [
"sha256:0d4fa3743c7a453f31dae9b44fcc0c869125a323c166a6b39e20122f488addb2",
"sha256:2e8706b90910d66668b3f34aea9cceab3c08ba83fedd78de65ff323edc8a1414",
"sha256:35acc9a3be4fbd4f6f3480eecb3c637dfb5ca1812fe86baf5e6759a0133837cf",
"sha256:83a0cedd3449e3946307811a4c7b9d89c4b5fd464a2fb5eeccd0a5bb158ae5c8",
"sha256:90be2ecff71d92352f59c6371abe017c0859bc617a545ba6aaf4d96951ba7947",
"sha256:bd5c4e37f74c103e117549f89aeb3c244488c4a6422df786d1a7d03257f16b34",
"sha256:ce5497a8ff55e81cf88cb402a87dedc7663d2671d5f1303d978ba1afb33c4fb6",
"sha256:f23060f0f5b23f26b76e43fb0ef51e5294e4b575f69edab5cfe442635680f2ec"
],
"index": "pypi",
"version": "==5.0.2"
},
"simplejson": {
"hashes": [
"sha256:034550078a11664d77bc1a8364c90bb7eef0e44c2dbb1fd0a4d92e3997088667",
Expand Down
10 changes: 9 additions & 1 deletion Pipfile-3.8.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "54b0094dcab1e28bccb2e2317013eb90de7927248f971c2c7fb2f115c14bb17d"
"sha256": "24f8b37ab22f6023af2955fa367b4c2bb426cc3d6893eeb5177bb30b4cfd3c06"
},
"pipfile-spec": 6,
"requires": {
Expand Down Expand Up @@ -78,6 +78,14 @@
"index": "pypi",
"version": "==2.25.1"
},
"setuptools-scm": {
"hashes": [
"sha256:c3bd5f701c8def44a5c0bfe8d407bef3f80342217ef3492b951f3777bd2d915c",
"sha256:d1925a69cb07e9b29416a275b9fadb009a23c148ace905b2fb220649a6c18e92"
],
"index": "pypi",
"version": "==6.0.1"
},
"simplejson": {
"hashes": [
"sha256:034550078a11664d77bc1a8364c90bb7eef0e44c2dbb1fd0a4d92e3997088667",
Expand Down
24 changes: 23 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions ci/azure/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ jobs:
matrix:
Python37:
python.version: '3.7'
Python39:
python.version: '3.9'
steps:
- template: steps.yaml
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[metadata]
name = shell-jobrunner
version = 2.3.1
description = Shell-based job runner with logging
long_description = file:README.rst
long_description_content_type = text/x-rst
Expand All @@ -19,12 +18,16 @@ classifiers =
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: Utilities
Topic :: Terminals
Topic :: System :: Shells

[options]
python_requires = >= 2.7
setup_requires = setuptools_scm
install_requires=
chardet
dateutils
Expand Down

0 comments on commit 5442b06

Please sign in to comment.