Skip to content

Commit

Permalink
modernize the packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jfischer committed Aug 11, 2021
1 parent b5e5877 commit 33f9ed7
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 42 deletions.
2 changes: 1 addition & 1 deletion dataworkspaces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
"""

__version__ = "1.5.0alpha"
__version__ = "1.5.0"

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[mypy]
check_untyped_defs = true
37 changes: 37 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[metadata]
name = dataworkspaces
version = attr: dataworkspaces.__version__
author = Max Plack Institute for Software Systems, Benedat LLC
author_email = jeff.fischer@benedat.com
description = Easy management of source data, intermediate data, and results for data science projects
long_description = file: README.rst
long_description_content_type = text/x-rst
url = https://github.com/data-workspaces/data-workspaces-core
classifiers =
Programming Language :: Python :: 3 :: Only
Development Status :: 4 - Beta
License :: OSI Approved :: Apache Software License
Operating System :: MacOS
Operating System :: POSIX :: Linux
Operating System :: POSIX
Operating System :: Microsoft :: Windows :: Windows 10
Topic :: Software Development :: Version Control
Topic :: Scientific/Engineering :: Information Analysis

[options]
python_requires = >=3.6
packages = find:
include_package_data = True
install_requires =
click
requests
chardet
dws-repo2docker

[options.extras_require]
s3 = boto3; s3fs

[options.entry_points]
console_scripts =
dws = dataworkspaces.__main__:main
git-fat = dataworkspaces.third_party.git_fat:main
90 changes: 49 additions & 41 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,43 +1,51 @@
# Copyright 2018,2019 by MPI-SWS and Data-ken Research. Licensed under Apache 2.0. See LICENSE.txt.
from setuptools import setup, find_packages
#!/usr/bin/env python
# Copyright 2018-2021 by MPI-SWS and Benedat LLC. Licensed under Apache 2.0. See LICENSE.txt.

import sys
sys.path.insert(0, 'dataworkspaces')
from dataworkspaces import __version__
import setuptools

with open("README.rst", "r") as f:
long_description = f.read()
setup(
name='dataworkspaces',
version=__version__,
author="Max Plack Institute for Software Systems, Data-ken Research",
author_email='jeff@data-ken.org',
description="Easy management of source data, intermediate data, and results for data science projects",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/data-workspaces/data-workspaces-core",
packages=find_packages(),
include_package_data=True, # needed for copying data files at install time
python_requires=">=3.6",
install_requires=[
'click',
'requests',
'dws-repo2docker'
],
entry_points="""
[console_scripts]
dws=dataworkspaces.__main__:main
git-fat=dataworkspaces.third_party.git_fat:main
""",
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Topic :: Software Development :: Version Control",
"Topic :: Scientific/Engineering :: Information Analysis"
]
)
if __name__ == "__main__":
setuptools.setup()

# Old non-declarative version - see setup.cfg for latest
# from setuptools import setup, find_packages

# import sys
# sys.path.insert(0, 'dataworkspaces')
# from dataworkspaces import __version__

# with open("README.rst", "r") as f:
# long_description = f.read()
# setup(
# name='dataworkspaces',
# version=__version__,
# author="Max Plack Institute for Software Systems, Data-ken Research",
# author_email='jeff@data-ken.org',
# description="Easy management of source data, intermediate data, and results for data science projects",
# long_description=long_description,
# long_description_content_type="text/x-rst",
# url="https://github.com/data-workspaces/data-workspaces-core",
# packages=find_packages(),
# include_package_data=True, # needed for copying data files at install time
# python_requires=">=3.6",
# install_requires=[
# 'click',
# 'requests',
# 'dws-repo2docker'
# ],
# entry_points="""
# [console_scripts]
# dws=dataworkspaces.__main__:main
# git-fat=dataworkspaces.third_party.git_fat:main
# """,
# classifiers=[
# "Programming Language :: Python :: 3 :: Only",
# "Development Status :: 4 - Beta",
# "License :: OSI Approved :: Apache Software License",
# "Operating System :: MacOS",
# "Operating System :: POSIX :: Linux",
# "Operating System :: POSIX",
# "Operating System :: Microsoft :: Windows :: Windows 10",
# "Topic :: Software Development :: Version Control",
# "Topic :: Scientific/Engineering :: Information Analysis"
# ]
# )

0 comments on commit 33f9ed7

Please sign in to comment.