Skip to content

Commit

Permalink
Merge pull request #534 from eggplants/get_version_without_import
Browse files Browse the repository at this point in the history
Read version without packages
  • Loading branch information
jjjake authored Jun 15, 2022
2 parents 4c1799a + 3317a61 commit 778978a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: test_install
on:
pull_request:
push:
branches: [master]
jobs:
install_internetarchive:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
setuptools-version: ["45.2.0", "58.1.0", "62.4.0"]
steps:
- uses: actions/checkout@v3
- run: pip install setuptools=="${{ matrix.setuptools-version }}"
- run: pip install .
2 changes: 1 addition & 1 deletion internetarchive/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
"""

__title__ = 'internetarchive'
__version__ = '3.0.1'
__author__ = 'Jacob M. Johnson'
__license__ = 'AGPL 3'
__copyright__ = 'Copyright (C) 2012-2019 Internet Archive'

from .__version__ import __version__ # isort:skip
from internetarchive.api import (
configure,
delete,
Expand Down
1 change: 1 addition & 0 deletions internetarchive/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '3.0.1'
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = internetarchive
version = attr: internetarchive.__version__
version = attr: internetarchive.__version__.__version__
description = A Python interface to archive.org.
long_description = file: README.rst
long_description_content_type = text/x-rst
Expand Down

0 comments on commit 778978a

Please sign in to comment.