-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Fixed the stuff to use setuptools better. #320
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
[*.py] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = true | ||
end_of_line = lf |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
.cache/ | ||
*.egg-info/ | ||
*.pyc | ||
/dist | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
load_types(pickleable=True,unpickleable=True) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice idea. I have a few issues, however:
|
||
from dill import objects | ||
|
||
if __name__ == "__main__": | ||
def get_objgraph(): | ||
import sys | ||
if len(sys.argv) != 2: | ||
print ("Please provide exactly one file or type name (e.g. 'IntType')") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[build-system] | ||
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,48 @@ | ||
[egg_info] | ||
tag_build = .dev0 | ||
#tag_svn_revision = yes | ||
#tag_date = yes | ||
[metadata] | ||
name = dill | ||
author = Mike McKerns | ||
maintainer = Mike McKerns | ||
license = BSD-3-Clause | ||
license_file = LICENSE | ||
description = serialize all of python | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://pypi.org/project/dill | ||
homepage = https://github.com/uqfoundation/dill | ||
download_url = https://github.com/uqfoundation/dill | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Intended Audience :: Developers | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: BSD License | ||
Programming Language :: Python :: 2 | ||
Programming Language :: Python :: 2.5 | ||
Programming Language :: Python :: 2.6 | ||
Programming Language :: Python :: 2.7 | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.1 | ||
Programming Language :: Python :: 3.2 | ||
Programming Language :: Python :: 3.3 | ||
Programming Language :: Python :: 3.4 | ||
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Topic :: Scientific/Engineering | ||
Topic :: Software Development | ||
platforms = Linux, Windows, Mac | ||
|
||
[options] | ||
packages = dill, dill.tools | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had |
||
zip_safe = False | ||
python_requires = >=2.5, !=3.0.* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. isn't ctypes a part of python stdlib? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes... or more precisely... believe it or not... most of the time it is. The STL contents are not all the same on all platforms and distributions, and last I checked, it was one of a few libraries that isn't always shipped as part of the STL. For example: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I guess that in this case it should be installed using system package manager, like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't control how people install There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thue problem is not with dill, but with its native dependencies which are meant to be a part of python interpreter. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree. But, we have a practical problem here, about what to do about it. |
||
setup_requires = setuptools>=44; wheel; setuptools_scm[toml]>=3.4.3 | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These two |
||
[options.extras_require] | ||
readline = pyreadline>=1.7.1 | ||
graph = objgraph>=1.7.2 | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
undill = dill.tools.undill:undill | ||
get_objgraph = dill.tools.get_objgraph:get_objgraph |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
__init__.__doc__
needs to stay, as that is what is seen in the docs at http://dill.rtfd.io/.