Issue with development version installation

22 views
Skip to first unread message

Kshitiz

unread,
Mar 1, 2023, 1:52:24 PMMar 1
to astropy-dev

Hi,

This is regarding the 'failure' I am getting on running 'pytest' after installing the
developer version, as per instructions on this page :
https://docs.astropy.org/en/latest/development/workflow/get_devel_version.html .

#
I could successfully run upto the command :

> pip install -e .[test]

given in the section : “Activate” the development version of astropy  .


#
Thereafter, I get in python :

>>> import astropy
>>> astropy.__version__
'0.1.dev35076+g09e5467'


#
On running '> pytest' in my terminal (bash shell) as per instruction in section : Test your development copy ,
I get the following 1 failure at the end :


======================================================== FAILURES =========================================================
____________________________________ [doctest] astropy.utils.introspection.minversion _____________________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> minversion(astropy, '0.4.4')
Expected:
    True
Got:
    False

/...path.../astropy/astropy/utils/introspection.py:None: DocTestFailure
================================================= short test summary info =================================================
FAILED astropy/utils/introspection.py::astropy.utils.introspection.minversion
========================== 1 failed, 25031 passed, 757 skipped, 179 xfailed in 240.00s (0:03:59) ==========================



I tried installing the latest developement version again, but to no avail.

I am running python 3.8 in a miniconda virtual environ created for the purpose of
installing the development version explicitly.


Posting here first because not sure if it is a bug or some oversight in installation on my part.


Thanks 
- Kshitiz   

Message has been deleted

William Jamieson

unread,
Mar 2, 2023, 9:11:35 AMMar 2
to astropy-dev
Astropy generates its version number from its tags. You will need to synchronize your tags with the "upstream" (main astropy) repository. Assuming the main astropy repository is your `upstream` remote you can do this by running:

$ git fetch upstream --tags 

Kshitiz

unread,
Mar 2, 2023, 3:49:57 PMMar 2
to astropy-dev
Thanks. 

Running 
$ git fetch upstream --tags 
before : 
$ pip install -e .[test] 

is making all the tests pass and giving a proper 5.3.dev version. 
Reply all
Reply to author
Forward
0 new messages