OAFuncs 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- OAFuncs-0.0.1/LICENSE.txt +19 -0
- OAFuncs-0.0.1/OAFuncs.egg-info/PKG-INFO +23 -0
- OAFuncs-0.0.1/OAFuncs.egg-info/SOURCES.txt +8 -0
- OAFuncs-0.0.1/OAFuncs.egg-info/dependency_links.txt +1 -0
- OAFuncs-0.0.1/OAFuncs.egg-info/requires.txt +5 -0
- OAFuncs-0.0.1/OAFuncs.egg-info/top_level.txt +1 -0
- OAFuncs-0.0.1/PKG-INFO +23 -0
- OAFuncs-0.0.1/README.md +3 -0
- OAFuncs-0.0.1/setup.cfg +4 -0
- OAFuncs-0.0.1/setup.py +139 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2024 OAFuncs
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: OAFuncs
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: My short description for my project.
|
|
5
|
+
Home-page: https://github.com/Industry-Pays/OAFuncs
|
|
6
|
+
Author: Kun Liu
|
|
7
|
+
Author-email: 16031215@qq.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
15
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
16
|
+
Requires-Python: >=3.10.0
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE.txt
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# OAFuncs
|
|
22
|
+
|
|
23
|
+
Python Function
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
OAFuncs-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: OAFuncs
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: My short description for my project.
|
|
5
|
+
Home-page: https://github.com/Industry-Pays/OAFuncs
|
|
6
|
+
Author: Kun Liu
|
|
7
|
+
Author-email: 16031215@qq.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
15
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
16
|
+
Requires-Python: >=3.10.0
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE.txt
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# OAFuncs
|
|
22
|
+
|
|
23
|
+
Python Function
|
OAFuncs-0.0.1/README.md
ADDED
OAFuncs-0.0.1/setup.cfg
ADDED
OAFuncs-0.0.1/setup.py
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
# Note: To use the 'upload' functionality of this file, you must:
|
|
5
|
+
# $ pipenv install twine --dev
|
|
6
|
+
|
|
7
|
+
import io
|
|
8
|
+
import os
|
|
9
|
+
import sys
|
|
10
|
+
from shutil import rmtree
|
|
11
|
+
|
|
12
|
+
from setuptools import find_packages, setup, Command
|
|
13
|
+
|
|
14
|
+
# Package meta-data.
|
|
15
|
+
NAME = 'OAFuncs'
|
|
16
|
+
DESCRIPTION = 'My short description for my project.'
|
|
17
|
+
URL = 'https://github.com/Industry-Pays/OAFuncs'
|
|
18
|
+
EMAIL = '16031215@qq.com'
|
|
19
|
+
AUTHOR = 'Kun Liu'
|
|
20
|
+
REQUIRES_PYTHON = '>=3.10.0'
|
|
21
|
+
VERSION = '0.0.1'
|
|
22
|
+
|
|
23
|
+
# What packages are required for this module to be executed?
|
|
24
|
+
REQUIRED = [
|
|
25
|
+
# nc
|
|
26
|
+
"netCDF4",
|
|
27
|
+
"numpy",
|
|
28
|
+
"xarray",
|
|
29
|
+
# file
|
|
30
|
+
"glob",
|
|
31
|
+
"shutil",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
# What packages are optional?
|
|
35
|
+
EXTRAS = {
|
|
36
|
+
# 'fancy feature': ['django'],
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
# The rest you shouldn't have to touch too much :)
|
|
40
|
+
# ------------------------------------------------
|
|
41
|
+
# Except, perhaps the License and Trove Classifiers!
|
|
42
|
+
# If you do change the License, remember to change the Trove Classifier for that!
|
|
43
|
+
|
|
44
|
+
here = os.path.abspath(os.path.dirname(__file__))
|
|
45
|
+
|
|
46
|
+
# Import the README and use it as the long-description.
|
|
47
|
+
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
|
|
48
|
+
try:
|
|
49
|
+
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
|
|
50
|
+
long_description = '\n' + f.read()
|
|
51
|
+
except FileNotFoundError:
|
|
52
|
+
long_description = DESCRIPTION
|
|
53
|
+
|
|
54
|
+
# Load the package's __version__.py module as a dictionary.
|
|
55
|
+
about = {}
|
|
56
|
+
if not VERSION:
|
|
57
|
+
project_slug = NAME.lower().replace("-", "_").replace(" ", "_")
|
|
58
|
+
with open(os.path.join(here, project_slug, '__version__.py')) as f:
|
|
59
|
+
exec(f.read(), about)
|
|
60
|
+
else:
|
|
61
|
+
about['__version__'] = VERSION
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class UploadCommand(Command):
|
|
65
|
+
"""Support setup.py upload."""
|
|
66
|
+
|
|
67
|
+
description = 'Build and publish the package.'
|
|
68
|
+
user_options = []
|
|
69
|
+
|
|
70
|
+
@staticmethod
|
|
71
|
+
def status(s):
|
|
72
|
+
"""Prints things in bold."""
|
|
73
|
+
print('\033[1m{0}\033[0m'.format(s))
|
|
74
|
+
|
|
75
|
+
def initialize_options(self):
|
|
76
|
+
pass
|
|
77
|
+
|
|
78
|
+
def finalize_options(self):
|
|
79
|
+
pass
|
|
80
|
+
|
|
81
|
+
def run(self):
|
|
82
|
+
try:
|
|
83
|
+
self.status('Removing previous builds…')
|
|
84
|
+
rmtree(os.path.join(here, 'dist'))
|
|
85
|
+
except OSError:
|
|
86
|
+
pass
|
|
87
|
+
|
|
88
|
+
self.status('Building Source and Wheel (universal) distribution…')
|
|
89
|
+
os.system('{0} setup.py sdist bdist_wheel --universal'.format(sys.executable))
|
|
90
|
+
|
|
91
|
+
self.status('Uploading the package to PyPI via Twine…')
|
|
92
|
+
os.system('twine upload dist/*')
|
|
93
|
+
|
|
94
|
+
self.status('Pushing git tags…')
|
|
95
|
+
os.system('git tag v{0}'.format(about['__version__']))
|
|
96
|
+
os.system('git push --tags')
|
|
97
|
+
|
|
98
|
+
sys.exit()
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
# Where the magic happens:
|
|
102
|
+
setup(
|
|
103
|
+
name=NAME,
|
|
104
|
+
version=about['__version__'],
|
|
105
|
+
description=DESCRIPTION,
|
|
106
|
+
long_description=long_description,
|
|
107
|
+
long_description_content_type='text/markdown',
|
|
108
|
+
author=AUTHOR,
|
|
109
|
+
author_email=EMAIL,
|
|
110
|
+
python_requires=REQUIRES_PYTHON,
|
|
111
|
+
url=URL,
|
|
112
|
+
packages=find_packages(exclude=["nc", "file"]),
|
|
113
|
+
# packages=find_packages(exclude=["nc", "file", "*.tests.*", "tests.*"]),
|
|
114
|
+
# If your package is a single module, use this instead of 'packages':
|
|
115
|
+
# py_modules=['mypackage'],
|
|
116
|
+
|
|
117
|
+
# entry_points={
|
|
118
|
+
# 'console_scripts': ['mycli=mymodule:cli'],
|
|
119
|
+
# },
|
|
120
|
+
install_requires=REQUIRED,
|
|
121
|
+
extras_require=EXTRAS,
|
|
122
|
+
include_package_data=True,
|
|
123
|
+
license='MIT',
|
|
124
|
+
classifiers=[
|
|
125
|
+
# Trove classifiers
|
|
126
|
+
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
|
127
|
+
'License :: OSI Approved :: MIT License',
|
|
128
|
+
'Programming Language :: Python',
|
|
129
|
+
'Programming Language :: Python :: 3',
|
|
130
|
+
'Programming Language :: Python :: 3.10',
|
|
131
|
+
'Programming Language :: Python :: 3.11',
|
|
132
|
+
'Programming Language :: Python :: Implementation :: CPython',
|
|
133
|
+
'Programming Language :: Python :: Implementation :: PyPy'
|
|
134
|
+
],
|
|
135
|
+
# $ setup.py publish support.
|
|
136
|
+
cmdclass={
|
|
137
|
+
'upload': UploadCommand,
|
|
138
|
+
},
|
|
139
|
+
)
|