Skip to content
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

Release version 0.1.0 #152

Merged
merged 87 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
6116dc7
Bump sphinx-rtd-theme from 1.2.2 to 2.0.0
dependabot[bot] Dec 4, 2023
de0affa
testing link in release
levius0 Apr 19, 2024
fa96364
text of link changed
levius0 Apr 19, 2024
8ca6d42
testing new deployment
levius0 Apr 22, 2024
fc9af1d
added new condition for release
levius0 Apr 22, 2024
ddea496
test comments
levius0 Apr 22, 2024
d64a36c
test compare
levius0 Apr 22, 2024
9dfa451
new comparation
levius0 Apr 22, 2024
7725817
new if condition
levius0 Apr 22, 2024
35cb90a
uncommented lines + downgrade version to 0.0.15
levius0 Apr 22, 2024
2087a9e
uncommented pypi deploy
levius0 Apr 22, 2024
4b263d9
test verstion comparation should not trigger
levius0 Apr 22, 2024
3d506a1
update
levius0 Apr 22, 2024
c783683
fixed typo
levius0 Apr 22, 2024
745b9b8
test run to trigger release
levius0 Apr 22, 2024
86332af
fixed typo in order
levius0 Apr 22, 2024
9001b47
testing new previous tag collector
levius0 Apr 22, 2024
9ec358c
test conditions
levius0 Apr 22, 2024
b272ae6
rolled back to 0.0.15 and uncommented all lines
levius0 Apr 22, 2024
6743151
Merge pull request #121 from InternetNZ/add-pypi-link-to-release
levius0 Apr 22, 2024
78382b9
test workflow to check condition
levius0 Apr 23, 2024
08f6f8e
new conditions for tag existance
levius0 Apr 23, 2024
77cd77c
new condition replaces everywhere
levius0 Apr 23, 2024
7c03bb0
uncommented lines
levius0 Apr 23, 2024
9bb2577
new get latest tag step
levius0 Apr 23, 2024
5921823
updated workflow step
levius0 Apr 23, 2024
91782e5
new tag comparation condition
levius0 Apr 23, 2024
10169b1
new create tag step test
levius0 Apr 23, 2024
6f8243d
uncommented lines
levius0 Apr 23, 2024
c582ef5
downgraded version
levius0 Apr 23, 2024
c261601
Merge pull request #123 from InternetNZ/fix-workflow
levius0 Apr 23, 2024
c9d504b
Bump coverage from 7.4.4 to 7.5.0
dependabot[bot] Apr 29, 2024
2033f53
Bump myst-parser from 2.0.0 to 3.0.1
dependabot[bot] Apr 29, 2024
b0ad2a0
Bump pytest from 8.1.1 to 8.2.0
dependabot[bot] Apr 29, 2024
9273a1c
Merge pull request #125 from InternetNZ/dependabot/pip/coverage-7.5.0
ehsan-fj Apr 30, 2024
56d969a
Merge pull request #127 from InternetNZ/dependabot/pip/pytest-8.2.0
ehsan-fj Apr 30, 2024
afc22cb
set the ssl version to 2.3 in ssl context
ehsan-fj May 2, 2024
c87cafa
change ssl to tls
ehsan-fj May 2, 2024
7101fb5
fix a bug in changing log level
ehsan-fj May 2, 2024
ab4d3cf
Bump coverage from 7.5.0 to 7.5.1
dependabot[bot] May 6, 2024
204a5df
Bump pip-audit from 2.7.2 to 2.7.3
dependabot[bot] May 6, 2024
a1d77c6
Merge pull request #130 from InternetNZ/dependabot/pip/pip-audit-2.7.3
ehsan-fj May 6, 2024
8673746
Merge pull request #129 from InternetNZ/dependabot/pip/coverage-7.5.1
ehsan-fj May 6, 2024
39ec600
change the version
ehsan-fj May 6, 2024
a97d98d
Merge pull request #128 from InternetNZ/set-ssl-version
ehsan-fj May 6, 2024
b5e2f3a
Bump jinja2 from 3.1.3 to 3.1.4
dependabot[bot] May 13, 2024
e168618
Bump pylint from 3.1.0 to 3.2.1
dependabot[bot] May 20, 2024
b69d06f
Merge pull request #131 from InternetNZ/dependabot/pip/jinja2-3.1.4
levius0 May 20, 2024
21a520a
jinja2 -> 3.1.4
levius0 May 20, 2024
ceebde1
Merge pull request #132 from InternetNZ/dependabot/pip/pylint-3.2.1
levius0 May 20, 2024
235ea2e
Bump coverage from 7.5.1 to 7.5.2
dependabot[bot] May 27, 2024
eafaa86
Bump pytest from 8.2.0 to 8.2.1
dependabot[bot] May 27, 2024
05fd159
Merge pull request #133 from InternetNZ/dependabot/pip/coverage-7.5.2
ehsan-fj May 27, 2024
74e6f07
Merge pull request #134 from InternetNZ/dependabot/pip/pytest-8.2.1
ehsan-fj May 27, 2024
4cd115d
Bump coverage from 7.5.2 to 7.5.3
dependabot[bot] Jun 3, 2024
512c8ea
Bump lxml from 5.2.1 to 5.2.2
dependabot[bot] Jun 3, 2024
230ba8b
Merge pull request #136 from InternetNZ/dependabot/pip/lxml-5.2.2
levius0 Jun 3, 2024
134438e
Merge pull request #135 from InternetNZ/dependabot/pip/coverage-7.5.3
levius0 Jun 3, 2024
0ec8052
Bump pylint from 3.2.1 to 3.2.3
dependabot[bot] Jun 10, 2024
c3a7a4f
Merge pull request #137 from InternetNZ/dependabot/pip/pylint-3.2.3
levius0 Jun 10, 2024
89dd56e
Bump pytest from 8.2.1 to 8.2.2
dependabot[bot] Jun 10, 2024
0afc4a6
Merge pull request #138 from InternetNZ/dependabot/pip/pytest-8.2.2
levius0 Jun 10, 2024
f88b100
Bump bandit from 1.7.8 to 1.7.9
dependabot[bot] Jun 17, 2024
77452f8
Merge pull request #139 from InternetNZ/dependabot/pip/bandit-1.7.9
ehsan-fj Jun 17, 2024
a037120
Bump coverage from 7.5.3 to 7.5.4
dependabot[bot] Jun 24, 2024
206fbea
Merge pull request #140 from InternetNZ/dependabot/pip/coverage-7.5.4
levius0 Jun 24, 2024
e9f6399
Bump pylint from 3.2.3 to 3.2.5
dependabot[bot] Jul 1, 2024
b31d24e
Merge pull request #141 from InternetNZ/dependabot/pip/pylint-3.2.5
levius0 Jul 1, 2024
b619b39
Bump coverage from 7.5.4 to 7.6.0
dependabot[bot] Jul 15, 2024
675c1e2
Merge pull request #142 from InternetNZ/dependabot/pip/coverage-7.6.0
levius0 Jul 15, 2024
562dc67
Bump pylint from 3.2.5 to 3.2.6
dependabot[bot] Jul 22, 2024
411a817
Merge pull request #143 from InternetNZ/dependabot/pip/pylint-3.2.6
levius0 Jul 22, 2024
203b4a0
Bump pytest from 8.2.2 to 8.3.1
dependabot[bot] Jul 22, 2024
f12cf8a
Merge pull request #144 from InternetNZ/dependabot/pip/pytest-8.3.1
levius0 Jul 22, 2024
d03fd38
Bump pytest from 8.3.1 to 8.3.2
dependabot[bot] Jul 29, 2024
64edd8b
Merge pull request #146 from InternetNZ/dependabot/pip/pytest-8.3.2
levius0 Jul 29, 2024
609662a
Merge pull request #74 from InternetNZ/dependabot/pip/sphinx-rtd-them…
levius0 Jul 29, 2024
bbd83db
Merge branch 'develop' into dependabot/pip/myst-parser-3.0.1
ehsan-fj Jul 29, 2024
94a2db9
Merge pull request #126 from InternetNZ/dependabot/pip/myst-parser-3.0.1
ehsan-fj Jul 29, 2024
91c709a
Fix contact info update details
ehsan-fj Aug 1, 2024
03d9fc3
Merge pull request #149 from InternetNZ/fix-getting-contact-update-info
ehsan-fj Aug 1, 2024
761756d
Format the file
ehsan-fj Aug 2, 2024
f16f411
Linting pyproject.toml
ehsan-fj Aug 2, 2024
c8e90d7
Upgrade Python version to 3.11 in workflow
ehsan-fj Aug 2, 2024
d7c62b7
Add autocomplete instruction to docs
ehsan-fj Aug 2, 2024
8f19ae4
Merge pull request #150 from InternetNZ/enable-autocompletion
ehsan-fj Aug 2, 2024
89f4aea
First beta version (#151)
ehsan-fj Aug 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 29 additions & 21 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -35,35 +35,40 @@ jobs:
- name: Code Security Check
run: |
./scripts/code-security-check.sh
- name: Get Latest tag
run: |
git fetch --tags
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "LATEST_TAG: $LATEST_TAG"
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
- name: Extract version
run: |
NEW_VERSION=$(grep '^__version__' "pyepp/__init__.py" | sed -E 's/^__version__ = "(.*)"/v\1/')
echo "NEW_VERSION: $NEW_VERSION"
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
TRIMMED_VERSION=$(echo "$NEW_VERSION" | sed 's/^v//')
echo "TRIMMED_VERSION=$TRIMMED_VERSION" >> $GITHUB_ENV
- name: Publish to TestPyPi
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
if: github.event_name == 'push' && github.ref == 'refs/heads/develop' && env.LATEST_TAG != env.NEW_VERSION
run: |
rm -rf dist
python -m build
twine check dist/*
twine upload -r testpypi --username __token__ --password ${{ secrets.TEST_PYPI_API_TOKEN }} --skip-existing dist/*
- name: Publish to PyPi
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && env.LATEST_TAG != env.NEW_VERSION
run: |
rm -rf dist
python -m build
twine check dist/*
twine upload --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} dist/*
- name: Extract version
run: |
NEW_VERSION=$(grep '^__version__' "pyepp/__init__.py" | sed -E 's/^__version__ = "(.*)"/v\1/')
echo "NEW_VERSION: $NEW_VERSION"
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Get Previous tag
id: previous_tag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
twine upload --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} dist/* 
- name: Create Tag
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: rickstaa/action-create-tag@v1.7.2
with:
tag: ${{env.NEW_VERSION}}
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && env.LATEST_TAG != env.NEW_VERSION
run: |
git tag ${{env.NEW_VERSION}}
git push origin ${{env.NEW_VERSION}}
- name: Generate changelog
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && env.LATEST_TAG != env.NEW_VERSION
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
Expand All @@ -89,13 +94,16 @@ jobs:
toTag: ${{env.NEW_VERSION}}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && env.LATEST_TAG != env.NEW_VERSION
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{env.NEW_VERSION}}
tag: ${{ env.NEW_VERSION }}
draft: false
body: ${{steps.build_changelog.outputs.changelog}}
body: |
[PyEPP on PyPI](https://pypi.org/project/pyepp/${{env.TRIMMED_VERSION}}/)

${{ steps.build_changelog.outputs.changelog }}
makeLatest: true
artifacts: "./dist/*"
- name: Cleanup workspace
Expand Down
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ any registry systems that support EPP and work with it. It supports bellow RFCs:
- [RFC 5733 - Contact Mapping](https://datatracker.ietf.org/doc/html/rfc5733)
- [RFC 5734 - Transport over TCP](https://datatracker.ietf.org/doc/html/rfc5734)

>This is an early version and not stable yet. Please use with care.

## Installation

Expand Down Expand Up @@ -128,6 +127,31 @@ Commands:
run Receive an XML file containing an EPP XML command and execute it.
```

### Enable shell autocomplete
To enable shell autocompletion for your shell follow the below commands:

#### Zsh
```sh
mkdir -p ~/.pyepp
_PYEPP_COMPLETE=zsh_source pyepp > ~/.pyepp/shell-complete.zsh
```

Source the file in `~/.zshrc`.
```sh
. ~/.pyepp/shell-complete.zsh
```

#### Bash
```sh
mkdir -p ~/.pyepp
_PYEPP_COMPLETE=bash_source pyepp > ~/.pyepp/shell-complete.bash
```

Source the file in `~/.bashrc`.
```sh
. ~/.pyepp/shell-complete.bash
```

## Development setup
Clone this project. It's recommended to create virtual environment. Then install the dependencies and
development dependencies:
Expand Down
30 changes: 30 additions & 0 deletions docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,36 @@ And to get help for a specific command:
--client-transaction-id TEXT
-h, --help Show this message and exit.

Enable shell autocomplete
-------------------------
To enable shell autocompletion for your shell follow the below commands:

Zsh
^^^^
.. code-block:: text

mkdir -p ~/.pyepp
_PYEPP_COMPLETE=zsh_source pyepp > ~/.pyepp/shell-complete.zsh

Source the file in ``~/.zshrc``.

.. code-block:: text

. ~/.pyepp/shell-complete.zsh

Bash
^^^^
.. code-block:: text

mkdir -p ~/.pyepp
_PYEPP_COMPLETE=bash_source pyepp > ~/.pyepp/shell-complete.bash

Source the file in ``~/.bashrc``.

.. code-block:: text

. ~/.pyepp/shell-complete.bash

How to configure
----------------
The epp server configuration and credentials can be passed to the cli in three different ways. It can be done either
Expand Down
2 changes: 0 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ It supports the bellow RFCs:
* `RFC 5733 - Contact Mapping <https://datatracker.ietf.org/doc/html/rfc5733>`_
* `RFC 5734 - Transport over TCP <https://datatracker.ietf.org/doc/html/rfc5734>`_

.. note::
This is an early version and not stable yet. Please use with care.

Installation
------------
Expand Down
1 change: 1 addition & 0 deletions docs/pyepp.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:orphan:
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx==6.2.1
sphinx-rtd-theme==1.2.2
myst-parser==2.0.0
myst-parser==3.0.1
sphinx-rtd-theme==2.0.0
3 changes: 2 additions & 1 deletion pyepp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
PyEPP Package
"""
__version__ = "0.0.15"

__version__ = "0.1.0"

from pyepp.epp import EppCommunicator, EppResultCode, EppCommunicatorException
4 changes: 2 additions & 2 deletions pyepp/cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def pyepp_cli(ctx, server, port, client_cert, client_key, user, password, output
ctx.obj = cli.PyEppCli(server, port, client_cert, client_key, user, password, output_format, no_pretty, dry_run)

if verbose:
logging.basicConfig(level=logging.INFO)
logging.getLogger().setLevel(level=logging.INFO)
if debug:
logging.basicConfig(level=logging.DEBUG)
logging.getLogger().setLevel(level=logging.DEBUG)

utils.OUTPUT_FILE = file

Expand Down
Loading
Loading