Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up and move to setuptools-scm #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# setuptools-scm automatically adds all files managed by git
# Remove the tests directory
prune test
prune examples
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[build-system]
requires = [
"setuptools>=45",
"wheel",
"setuptools_scm>=6.2"
]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "sardana_adlink/_version.py"
9 changes: 2 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,11 @@

from setuptools import setup, find_packages

# The version is updated automatically with bumpversion
# Do not update manually
__version = '2.0.0'


def main():
"""Main method collecting all the parameters to setup."""
name = "sardana-adlink"

version = __version

description = "AdlinkAICoTi Sardana Controller"

author = "ALBA"
Expand All @@ -31,7 +25,8 @@ def main():

setup(
name=name,
version=version,
use_scm_version=True,
setup_requires=["setuptools_scm"],
description=description,
author=author,
author_email=author_email,
Expand Down