Skip to content

Commit

Permalink
Use setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballhat committed Jun 17, 2020
1 parent da18bae commit 71114ef
Show file tree
Hide file tree
Showing 10 changed files with 130 additions and 116 deletions.
2 changes: 0 additions & 2 deletions .coveragerc

This file was deleted.

21 changes: 11 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
*.pyc
/build/
/dist/
.DS_Store
.coverage
.vagrant
/*.egg
/*.egg-info
/*.eggs
/.conda/
/.idea/
/.jupyter/
/.local/
/.idea/
/build/
/dist/
/node_modules/
/notebooks*/
/*.egg-info
/*.egg
/*.eggs
.DS_Store
.vagrant
rsconnect/tests/testdata/**/rsconnect-python/
.coverage
/rsconnect/version.py
htmlcov
rsconnect/tests/testdata/**/rsconnect-python/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := $(shell cat rsconnect/version.txt).$(shell printenv BUILD_NUMBER || echo 9999)
VERSION := $(shell python setup.py --version)
HOSTNAME := $(shell hostname)

RUNNER = docker run \
Expand Down
5 changes: 4 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ verify_ssl = true

[dev-packages]
black = "*"
coverage = "*"
flake8 = "*"
funcsigs = "*"
importlib-metadata = "*"
ipython = "*"
pytest = "*"
pytest-cov = "*"
importlib-metadata = "*"
setuptools_scm = "*"
toml = "*"

[packages]
click = ">=7.0.0"
Expand Down
143 changes: 79 additions & 64 deletions Pipfile.lock

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

9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]

[tool.black]
line-length = 120
target-version = ['py27', 'py35', 'py36', 'py37', 'py38']

[tool.coverage.run]
omit = ["rsconnect/tests/*"]

[tool.setuptools_scm]
write_to = "rsconnect/version.py"
4 changes: 1 addition & 3 deletions rsconnect/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
from os.path import join, dirname

VERSION = open(join(dirname(__file__), "version.txt"), "r").read().strip()
from rsconnect.version import version as VERSION # noqa
1 change: 0 additions & 1 deletion rsconnect/version.txt

This file was deleted.

24 changes: 24 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,28 @@
universal = 1

[metadata]
author = Michael Marchetti
author_email = [email protected]
description = Python integration with RStudio Connect
license = GPL-2.0
license_file = LICENSE.md
long_description = file:README.md
long_description_content_type = text/markdown
name = rsconnect_python
url = http://github.com/rstudio/rsconnect-python
project_urls =
Documentation = https://docs.rstudio.com/rsconnect-python

[options]
install_requires =
six>=1.14.0
click>=7.0.0
setup_requires =
setuptools
packages = rsconnect
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
zip_safe = true

[options.entry_points]
console_scripts =
rsconnect = rsconnect.main:cli
Loading

0 comments on commit 71114ef

Please sign in to comment.