Skip to content

Commit

Permalink
Get version using setuptools_scm
Browse files Browse the repository at this point in the history
Move setup details to setup.cfg
List excluded files and directories in Manifest.in
remove apidoc.template
  • Loading branch information
ygalblum committed Mar 26, 2020
1 parent a7c9cfb commit 07468fa
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 47 deletions.
10 changes: 7 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
recursive-include src *

recursive-exclude test *
recursive-exclude tests *
recursive-exclude docs *
recursive-exclude samples *
recursive-exclude .travis *
exclude doc8.ini Dockerfile.cterasdk-build .flake8 .gitignore Makefile .pylintrc skipper.yaml test-requirements.txt tox.ini .travis.yml ut-requirements.txt
exclude
global-exclude *.py[cod]
21 changes: 0 additions & 21 deletions cterasdk/transcript/apidoc.template

This file was deleted.

30 changes: 30 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[metadata]
name = cterasdk
author = CTERA Networks
author-email = support@ctera.com
home-page = https://pypi.org/project/cterasdk/
project_urls =
Bug Tracker = https://github.com/ctera/ctera-python-sdk/issues
Documentation = https://ctera-python-sdk.readthedocs.io/en/latest/
Source Code = https://github.com/ctera/ctera-python-sdk
summary = CTERA Python SDK
description-file =
README.rst
description-content-type = text/x-rst; charset=UTF-8
requires-python = >=3.5

requires-dist =
setuptools

classifier =
Development Status :: 4 - Beta
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python :: 3 :: Only
Topic :: Software Development :: Libraries :: Python Module

[options]
setup_requires =
setuptools_scm
24 changes: 1 addition & 23 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
import setuptools

# url = "https://github.com/pypa/sampleproject",

with open("README.rst", "r") as fh:
long_description = fh.read()

setuptools.setup(
name="cterasdk",
version="3.1.3",
author="CTERA Networks",
author_email="support@ctera.com",
description="CTERA Python SDK",
long_description=long_description,
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules"
],
python_requires='>=3.5',
use_scm_version=True,
)

0 comments on commit 07468fa

Please sign in to comment.