Skip to content
Snippets Groups Projects
Commit ab053147 authored by Georges Racinet's avatar Georges Racinet
Browse files

Packaging: separate VERSION file

This is the same as what's been done a while ago in
hgitaly@27f3a6ac3278.

Benefits:
- uniformity in release procedure with HGitaly
- easier to script (actually also easier to hand edit)
parent 3238d801
No related branches found
No related tags found
No related merge requests found
2.7.3.dev0
\ No newline at end of file
from pathlib import Path
from setuptools import setup, find_packages
with open('install-requirements.txt', 'r') as install_reqf:
install_req = [req.strip() for req in install_reqf]
......@@ -1,7 +2,9 @@
from setuptools import setup, find_packages
with open('install-requirements.txt', 'r') as install_reqf:
install_req = [req.strip() for req in install_reqf]
VERSION_FILE = 'VERSION'
setup(
name='heptapod',
......@@ -6,6 +9,6 @@
setup(
name='heptapod',
version='2.7.3.dev0',
version=Path('heptapod', VERSION_FILE).read_text().strip(),
author='Georges Racinet',
author_email='georges.racinet@octobus.net',
url='https://foss.heptapod.net/heptapod/py-heptapod',
......@@ -14,7 +17,7 @@
long_description_content_type="text/markdown",
keywords='hg mercurial heptapod gitlab',
license='GPLv2+',
package_data=dict(heptapod=['*.hgrc']),
package_data=dict(heptapod=['*.hgrc', VERSION_FILE]),
packages=find_packages(),
classifiers=[
"Development Status :: 4 - Beta",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment