Skip to content

Commit

Permalink
Fix/20221203/fixed dist info requirement for deploy (#1156)
Browse files Browse the repository at this point in the history
* fix(setup.cfg): Fixed dependency that would require dist-info folder to be present in the project to load __version__ variable with current version of the code

* chore: Update history.rst to reflect bug fix, changed version to 3.4.1.dev1
  • Loading branch information
Scoppio committed Oct 3, 2022
1 parent bc7805c commit 5723f37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/history.rst
Expand Up @@ -4,6 +4,10 @@ Change Log
Latest
-------

3.4.1
-----
- BUG: Changed so that the setup.cfg depends on the version code in the __init__.py instead of the other way around (issuue #1155)

3.4.0
-----
- WHL: Python 3.11 Wheels (issue #1110)
Expand Down
3 changes: 1 addition & 2 deletions pyproj/__init__.py
Expand Up @@ -28,7 +28,6 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
import importlib.metadata
import warnings

import pyproj.network
Expand Down Expand Up @@ -67,7 +66,7 @@
transform,
)

__version__ = importlib.metadata.version(__package__)
__version__ = "3.4.1.dev1"
__all__ = [
"Proj",
"Geod",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = pyproj
version = 3.4.1.dev0
version = attr: pyproj.__version__
description = Python interface to PROJ (cartographic projections and coordinate transformations library)
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit 5723f37

Please sign in to comment.