Skip to content

Commit 6625e55

Browse files
committed
switch to using setuptools_scm to get version
Disable appending local part to version because we're testing uploads to TestPyPI, and pypi does not support the local part in version numbers (see: https://github.com/pypa/setuptools_scm/#version-number-construction)
1 parent 3f9956c commit 6625e55

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import sdist_upip
33
from setuptools import setup
44

5-
VERSION = "1.0.0"
6-
75

86
def long_desc_from_readme():
97
with open('README.rst', 'r') as fd:
@@ -20,7 +18,9 @@ def long_desc_from_readme():
2018

2119
setup(
2220
name="micropython-py-esp32-ulp",
23-
version=VERSION,
21+
use_scm_version={
22+
'local_scheme': 'no-local-version',
23+
},
2424
description="Assembler toolchain for the ESP32 ULP co-processor, written in MicroPython",
2525
long_description=long_desc_from_readme(),
2626
long_description_content_type='text/x-rst',
@@ -34,6 +34,7 @@ def long_desc_from_readme():
3434
'License :: OSI Approved :: MIT License',
3535
'Programming Language :: Python :: Implementation :: MicroPython',
3636
],
37+
setup_requires=['setuptools_scm'],
3738
platforms=["esp32", "linux", "darwin"],
3839
cmdclass={"sdist": sdist_upip.sdist},
3940
packages=["esp32_ulp"],

0 commit comments

Comments
 (0)