-
Notifications
You must be signed in to change notification settings - Fork 22
Python3 migration #86
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
Open
Jay07GIT
wants to merge
8
commits into
vinyldns:master
Choose a base branch
from
Jay07GIT:python3_migration
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6a66ead
boto and python 3 migration
Jay07GIT a41c784
update
Jay07GIT 49d4c95
updated the deprecated code
Jay07GIT 28fae27
Merge branch 'master' into python3_migration
Jay07GIT 1b3c818
update
Jay07GIT fff2752
update
Jay07GIT 0178b9f
update
Jay07GIT 9b823be
update
Jay07GIT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Verify & Code-Coverage | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install tox | ||
|
|
||
| - name: Run tests | ||
| run: tox -e check,py3 | ||
|
|
||
| - name: Upload coverage to Codecov | ||
| if: success() | ||
| uses: codecov/codecov-action@v4 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| fail_ci_if_error: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,74 +12,46 @@ | |
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| from __future__ import absolute_import | ||
| from __future__ import print_function | ||
|
|
||
| import sys | ||
| from glob import glob | ||
| from os.path import basename | ||
| from os.path import splitext | ||
|
|
||
| from setuptools import find_packages | ||
| from setuptools import setup | ||
| from setuptools.command.test import test as TestCommand | ||
|
|
||
|
|
||
| # Allows one to simply > python3 setup.py test | ||
| class PyTest(TestCommand): | ||
| user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] | ||
|
|
||
| def initialize_options(self): | ||
| TestCommand.initialize_options(self) | ||
| self.pytest_args = [] | ||
| from os.path import basename, splitext | ||
|
|
||
| def finalize_options(self): | ||
| TestCommand.finalize_options(self) | ||
| self.test_args = [] | ||
| self.test_suite = True | ||
| from setuptools import find_packages, setup | ||
|
|
||
| def run_tests(self): | ||
| # import here, cause outside the eggs aren't loaded | ||
| import pytest | ||
| errno = pytest.main(self.pytest_args) | ||
| sys.exit(errno) | ||
|
|
||
|
|
||
| with open('README.md') as f: | ||
| with open("README.md", encoding="utf-8") as f: | ||
| long_description = f.read() | ||
|
|
||
|
|
||
| setup( | ||
| cmdclass={'test': PyTest}, | ||
| name='vinyldns-python', | ||
| version='0.9.8', | ||
| packages=find_packages('src'), | ||
| package_dir={'': 'src'}, | ||
| py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')], | ||
| name="vinyldns-python", | ||
| version="0.9.8", | ||
| packages=find_packages("src"), | ||
| package_dir={"": "src"}, | ||
Jay07GIT marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")], | ||
| include_package_data=True, | ||
| zip_safe=False, | ||
| url='https://github.com/vinyldns/vinyldns-python', | ||
| license='Apache Software License 2.0', | ||
| author='vinyldns', | ||
| author_email='[email protected]', | ||
| url="https://github.com/vinyldns/vinyldns-python", | ||
| license="Apache Software License 2.0", | ||
| author="vinyldns", | ||
| author_email="[email protected]", | ||
| classifiers=[ | ||
| 'Development Status :: 5 - Production/Stable', | ||
| 'Intended Audience :: Developers', | ||
| 'Topic :: Internet :: Name Service (DNS)', | ||
| 'License :: OSI Approved :: Apache Software License', | ||
| "Development Status :: 5 - Production/Stable", | ||
| "Intended Audience :: Developers", | ||
| "Topic :: Internet :: Name Service (DNS)", | ||
| "License :: OSI Approved :: Apache Software License", | ||
| "Programming Language :: Python :: 3", | ||
| ], | ||
Jay07GIT marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| keywords=[ | ||
| 'dns', 'python', 'vinyldns', | ||
| ], | ||
| description='Python client library for VinylDNS', | ||
| keywords=["dns", "python", "vinyldns"], | ||
| description="Python client library for VinylDNS", | ||
| long_description=long_description, | ||
| long_description_content_type="text/markdown", | ||
| install_requires=[ | ||
| 'boto>=2.48.0', | ||
| 'requests>=2.20.0', | ||
| 'python-dateutil>=2.7.5', | ||
| "boto3>=1.26.0", | ||
| "requests>=2.20.0", | ||
| "python-dateutil>=2.7.5", | ||
| ], | ||
| tests_require=[ | ||
| 'responses==0.10.4', | ||
| 'pytest==3.10.1', | ||
| ], | ||
| "responses==0.25.8", | ||
| "pytest==9.0.2", | ||
| ] | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.