diff options
author | Yuce Tekol <yucetekol@gmail.com> | 2019-05-03 02:28:15 +0300 |
---|---|---|
committer | Yuce Tekol <yucetekol@gmail.com> | 2019-05-03 02:28:15 +0300 |
commit | 83130efe9fbb7a026f571e77b49bb57be45fe5b9 (patch) | |
tree | fd8fa60b658547751778737adb4b6804132ca0e0 | |
parent | a0bd7adde20e1b89768b3784aeb9c03e851d7c70 (diff) | |
download | pyopenbsd-83130efe9fbb7a026f571e77b49bb57be45fe5b9.tar.gz |
dir layout
-rw-r--r-- | Makefile | 13 | ||||
-rw-r--r-- | openbsd/__init__.py | 2 | ||||
-rw-r--r-- | openbsd/openbsd_builder.py | 2 | ||||
-rw-r--r-- | setup.py | 22 |
4 files changed, 31 insertions, 8 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ccf1f60 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +# author: yuce +# created on 2019-05-03, at: 02:17 +0300 + +.PHONY: all build clean + + +all: build + +build: + python setup.py build + +clean: + rm -rf dist build openbsd.egg-info/ diff --git a/openbsd/__init__.py b/openbsd/__init__.py index 8810370..1aab185 100644 --- a/openbsd/__init__.py +++ b/openbsd/__init__.py @@ -1,7 +1,7 @@ import sys from cffi import FFI -from _openbsd import lib as _lib +from ._openbsd import lib as _lib __all__ = ["pledge", "unveil"] diff --git a/openbsd/openbsd_builder.py b/openbsd/openbsd_builder.py index 8ca0bc5..a8720c1 100644 --- a/openbsd/openbsd_builder.py +++ b/openbsd/openbsd_builder.py @@ -8,7 +8,7 @@ ffibuilder.cdef(''' char *strerror(int errnum); ''') -ffibuilder.set_source("_openbsd", +ffibuilder.set_source("openbsd._openbsd", """ #include <unistd.h> #include <string.h> diff --git a/setup.py b/setup.py index c21b9e0..3b9a1c4 100644 --- a/setup.py +++ b/setup.py @@ -13,18 +13,28 @@ with io.open("README.md", encoding="utf-8") as f: setup(name="openbsd", version="0.1.0", url="", - download_url="", - author="yuce", - author_email="", - description="", + download_url="https://github.com/yuce/pyopenbsd", + author="Yuce Tekol", + author_email="yucetekol@gmail.com", + description="OpenBSD Library", long_description=long_description, long_description_content_type="text/markdown", - license="", + license="BSD", packages=["openbsd"], keywords=["OpenBSD"], setup_requires=["cffi>=1.12.3"], cffi_modules=["openbsd/openbsd_builder.py:ffibuilder"], install_requires=["cffi>=1.12.3"], tests_require=["pytest", "pytest-cov"], - classifiers=[], + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Operating System :: POSIX :: BSD :: OpenBSD", + "License :: OSI Approved :: BSD License", + ], + ) |