Giter VIP home page Giter VIP logo

fastrelease's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar hamelsmu avatar jph00 avatar michaelaye avatar muellerzr avatar nilanshrajput avatar tcapelle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fastrelease's Issues

fastrelease_changelog not working

First of all, thank you very much for the development of this and all the fantastic fastai ecosystem!

I just got a problem after installation. I wanted to test fastrelease_changelog but it didn't work for me. I got the following error:

fastrelease_changelog
Traceback (most recent call last):
  File "/home/pablo/miniconda3/envs/sql-formatter-dev/bin/fastrelease_changelog", line 8, in <module>
    sys.exit(fastrelease_changelog())
  File "/home/pablo/miniconda3/envs/sql-formatter-dev/lib/python3.7/site-packages/fastcore/script.py", line 102, in _f
    tfunc(**merge(args, args_from_prog(func, xtra)))
  File "/home/pablo/miniconda3/envs/sql-formatter-dev/lib/python3.7/site-packages/fastrelease/core.py", line 101, in fastrelease_changelog
    FastRelease().changelog(debug=debug)
  File "/home/pablo/miniconda3/envs/sql-formatter-dev/lib/python3.7/site-packages/fastrelease/core.py", line 61, in __init__
    self.gh = GhApi(owner, repo, token)
NameError: name 'GhApi' is not defined

I installed fastrelease via pip. I'm using version 0.1.2 in a conda environment

Output of conda list | grep fastrelease

fastrelease               0.1.2                    pypi_0    pypi

Could you please help me on this?

Thank you in advance!

conda builds failing with fastrelease_conda_package

Command Used, from root of repo https://github.com/fastai/fastlinkcheck/

fastrelease_conda_package --upload_user fastai --build_args '-c pytorch -c fastai'

I see the message anaconda_upload is not set perhaps this could be a clue? @jph00

Logs

Adding in variants from internal_defaults
Attempting to finalize metadata for fastlinkcheck
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
BUILD START: ['fastlinkcheck-0.0.21-py_0.tar.bz2']
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done

Package Plan

environment location: /Users/hamelsmu/anaconda3/conda-bld/fastlinkcheck_1605508654731/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac

The following NEW packages will be INSTALLED:

ca-certificates: 2020.10.14-0                  
certifi:         2020.6.20-pyhd3eb1b0_3        
fastcore:        1.3.5-py_0              fastai
libcxx:          10.0.0-1                      
libedit:         3.1.20191231-h1de35cc_1       
libffi:          3.3-hb1e8313_2                
ncurses:         6.2-h0a44026_1                
openssl:         1.1.1h-haf1e3a3_0             
packaging:       20.4-py_0                     
pip:             20.2.4-py38hecd8cb5_0         
pyparsing:       2.4.7-py_0                    
python:          3.8.5-h26836e1_1              
readline:        8.0-h1de35cc_0                
setuptools:      50.3.1-py38hecd8cb5_1         
six:             1.15.0-py38hecd8cb5_0         
sqlite:          3.33.0-hffcf06c_0             
tk:              8.6.10-hb0a8c7a_0             
wheel:           0.35.1-pyhd3eb1b0_0           
xz:              5.2.5-h1de35cc_0              
zlib:            1.2.11-h1de35cc_3             

Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Source cache directory is: /Users/hamelsmu/anaconda3/conda-bld/src_cache
Found source in cache: fastlinkcheck-0.0.21_247e15588b.tar.gz
Extracting download
source tree in: /Users/hamelsmu/anaconda3/conda-bld/fastlinkcheck_1605508654731/work
export PREFIX=/Users/hamelsmu/anaconda3/conda-bld/fastlinkcheck_1605508654731/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac
export BUILD_PREFIX=/Users/hamelsmu/anaconda3/conda-bld/fastlinkcheck_1605508654731/_build_env
export SRC_DIR=/Users/hamelsmu/anaconda3/conda-bld/fastlinkcheck_1605508654731/work
Using pip 20.2.4 from $PREFIX/lib/python3.8/site-packages/pip (python 3.8)
Non-user install because user site-packages disabled
Ignoring indexes: https://pypi.org/simple
Created temporary directory: /private/tmp/pip-ephem-wheel-cache-35knkt0g
Created temporary directory: /private/tmp/pip-req-tracker-s3rwqbsc
Initialized build tracking at /private/tmp/pip-req-tracker-s3rwqbsc
Created build tracker: /private/tmp/pip-req-tracker-s3rwqbsc
Entered build tracker: /private/tmp/pip-req-tracker-s3rwqbsc
Created temporary directory: /private/tmp/pip-install-vpf0fzao
Processing $SRC_DIR
Created temporary directory: /private/tmp/pip-req-build-67k9iae1
Added file://$SRC_DIR to build tracker '/private/tmp/pip-req-tracker-s3rwqbsc'
Running setup.py (path:/private/tmp/pip-req-build-67k9iae1/setup.py) egg_info for package from file://$SRC_DIR
Created temporary directory: /private/tmp/pip-pip-egg-info-09rr_pv3
Source in /private/tmp/pip-req-build-67k9iae1 has version 0.0.21, which satisfies requirement fastlinkcheck==0.0.21 from file://$SRC_DIR
Removed fastlinkcheck==0.0.21 from file://$SRC_DIR from build tracker '/private/tmp/pip-req-tracker-s3rwqbsc'
Building wheels for collected packages: fastlinkcheck
Created temporary directory: /private/tmp/pip-wheel-jndn9im7
Building wheel for fastlinkcheck (setup.py): started
Destination directory: /private/tmp/pip-wheel-jndn9im7
Building wheel for fastlinkcheck (setup.py): finished with status 'done'
Created wheel for fastlinkcheck: filename=fastlinkcheck-0.0.21-py3-none-any.whl size=10053 sha256=2bbdfea86b342b51860e5f7e0f989b1c6dca9a968ae9e6f13aafff5a679d0249
Stored in directory: /private/tmp/pip-ephem-wheel-cache-35knkt0g/wheels/c1/88/28/ca181af3b183d3d9e35359b2eba7b37d4a7e87b69d03c40074
Successfully built fastlinkcheck
Installing collected packages: fastlinkcheck

changing mode of $PREFIX/bin/link_check to 755
Successfully installed fastlinkcheck-0.0.21
Removed build tracker: '/private/tmp/pip-req-tracker-s3rwqbsc'

Resource usage statistics from building fastlinkcheck:
Process count: 4
CPU time: Sys=0:00:00.2, User=0:00:00.2
Memory: 39.4M
Disk usage: 232B
Time elapsed: 0:00:06.1

Packaging fastlinkcheck
Packaging fastlinkcheck-0.0.21-py_0
number of files: 13
Fixing permissions
TEST START: build/noarch/fastlinkcheck-0.0.21-py_0.tar.bz2
Adding in variants from /var/folders/3y/vb18nv5d5mv5jy4_qtf92j9c0000gn/T/tmpmauyok0j/info/recipe/conda_build_config.yaml
Renaming work directory, /Users/hamelsmu/anaconda3/conda-bld/fastlinkcheck_1605508654731/work to /Users/hamelsmu/anaconda3/conda-bld/fastlinkcheck_1605508654731/work_moved_fastlinkcheck-0.0.21-py_0_noarch
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done

Package Plan

environment location: /Users/hamelsmu/anaconda3/conda-bld/fastlinkcheck_1605508654731/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold

The following NEW packages will be INSTALLED:

ca-certificates: 2020.10.14-0                                                                   
certifi:         2020.6.20-pyhd3eb1b0_3                                                         
fastcore:        1.3.5-py_0              fastai                                                 
fastlinkcheck:   0.0.21-py_0             file:///Users/hamelsmu/github/fastlinkcheck/conda/build
libcxx:          10.0.0-1                                                                       
libedit:         3.1.20191231-h1de35cc_1                                                        
libffi:          3.3-hb1e8313_2                                                                 
ncurses:         6.2-h0a44026_1                                                                 
openssl:         1.1.1h-haf1e3a3_0                                                              
packaging:       20.4-py_0                                                                      
pip:             20.2.4-py39hecd8cb5_0                                                          
pyparsing:       2.4.7-py_0                                                                     
python:          3.9.0-h88f2d9e_2                                                               
readline:        8.0-h1de35cc_0                                                                 
setuptools:      50.3.1-py39hecd8cb5_1                                                          
six:             1.15.0-py39hecd8cb5_0                                                          
sqlite:          3.33.0-hffcf06c_0                                                              
tk:              8.6.10-hb0a8c7a_0                                                              
tzdata:          2020d-h14c3975_0                                                               
wheel:           0.35.1-pyhd3eb1b0_0                                                            
xz:              5.2.5-h1de35cc_0                                                               
zlib:            1.2.11-h1de35cc_3                                                              

Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
export PREFIX=/Users/hamelsmu/anaconda3/conda-bld/fastlinkcheck_1605508654731/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold
export SRC_DIR=/Users/hamelsmu/anaconda3/conda-bld/fastlinkcheck_1605508654731/test_tmp
import: 'fastlinkcheck'
import: 'fastlinkcheck'

Resource usage statistics from testing fastlinkcheck:
Process count: 4
CPU time: Sys=0:00:00.1, User=0:00:00.1
Memory: 22.6M
Disk usage: 24B
Time elapsed: 0:00:04.1

TEST END: build/noarch/fastlinkcheck-0.0.21-py_0.tar.bz2
Renaming work directory, /Users/hamelsmu/anaconda3/conda-bld/fastlinkcheck_1605508654731/work to /Users/hamelsmu/anaconda3/conda-bld/fastlinkcheck_1605508654731/work_moved_fastlinkcheck-0.0.21-py_0_osx-64_main_build_loop
Uploading fastlinkcheck-0.0.21-py_0.tar.bz2 to anaconda.org
anaconda_upload is not set. Not uploading wheels: []
####################################################################################
Resource usage summary:

Total time: 0:00:56.8
CPU usage: sys=0:00:00.2, user=0:00:00.3
Maximum memory usage observed: 39.4M
Total disk usage observed (not including envs): 256B

####################################################################################
Source and build intermediates have been left in /Users/hamelsmu/anaconda3/conda-bld.
There are currently 9 accumulated.
To remove them, you can run the conda build purge command

\Build failed.

fastrelease_conda_package OS error with no error message

Description

I am trying to run fastrelease_conda_package and get the error below, there is no error message.

Environment

Window 10

fastrelease.version
'0.1.10'
fastcore.version
'1.3.20'

python 3.8.3

Error Message

fastrelease_conda_package
Traceback (most recent call last):
  File "c:\programdata\miniconda3\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\programdata\miniconda3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\ProgramData\Miniconda3\Scripts\fastrelease_conda_package.exe\__main__.py", line 7, in <module>
  File "c:\programdata\miniconda3\lib\site-packages\fastcore\script.py", line 105, in _f
    tfunc(**merge(args, args_from_prog(func, xtra)))
  File "c:\programdata\miniconda3\lib\site-packages\fastrelease\conda.py", line 168, in fastrelease_conda_package
    res = run(f"conda {build} --no-anaconda-upload {build_args} {name}")
  File "c:\programdata\miniconda3\lib\site-packages\fastcore\xtras.py", line 184, in run
    if res.returncode: raise IOError(stdout)
OSError

Exception when making a release: Unprocessable Entity

I have a library (timeseriesAI/tsai) and I'm trying to create my first release.

I've generate the token, and created a token file following the instruction in the web.

fastrelease_changelog works fine. I've modified the CHANGELOG.md file, git add . and git commit. All good.

The issue is when I try fastrelease_release (or fastrelease). I get this error message:

(py37) โžœ  tsai git:(main) fastrelease_release
Traceback (most recent call last):
  File "/Users/nacho/anaconda3/envs/py37/bin/fastrelease_release", line 8, in <module>
    sys.exit(fastrelease_release())
  File "/Users/nacho/anaconda3/envs/py37/lib/python3.7/site-packages/fastcore/script.py", line 107, in _f
    tfunc(**merge(args, args_from_prog(func, xtra)))
  File "/Users/nacho/anaconda3/envs/py37/lib/python3.7/site-packages/fastrelease/core.py", line 103, in fastrelease_release
    ver = FastRelease(token=token).release()
  File "/Users/nacho/anaconda3/envs/py37/lib/python3.7/site-packages/fastrelease/core.py", line 83, in release
    self.gh.create_release(ver, body=notes)
  File "/Users/nacho/anaconda3/envs/py37/lib/python3.7/site-packages/ghapi/core.py", line 168, in create_release
    draft=draft, prerelease=prerelease)
  File "/Users/nacho/anaconda3/envs/py37/lib/python3.7/site-packages/ghapi/core.py", line 63, in __call__
    return self.client(self.path, self.verb, headers=headers, route=route_p, query=query_p, data=data_p)
  File "/Users/nacho/anaconda3/envs/py37/lib/python3.7/site-packages/ghapi/core.py", line 109, in __call__
    route=route or None, query=query or None, data=data or None)
  File "/Users/nacho/anaconda3/envs/py37/lib/python3.7/site-packages/fastcore/net.py", line 212, in urlsend
    return urlread(req, return_json=return_json, return_headers=return_headers)
  File "/Users/nacho/anaconda3/envs/py37/lib/python3.7/site-packages/fastcore/net.py", line 113, in urlread
    if 400 <= e.code < 500: raise ExceptionsHTTP[e.code](e.url, e.hdrs, e.fp) from None
fastcore.basics.HTTP422UnprocessableEntityError: HTTP Error 422: Unprocessable Entity

I've looked around but couldn't find a solution. Woudl anybody be able to help me?

fastrelease IOError not showing information

I am trying to do a conda release, but the build error isnt showing very much detail. I think this line would fix this:
run(f"conda {build} --no-anaconda-upload {build_args} {name}", stderr=True) at this line
Or we can have the fastrelease_conda_package command allow for verbose outputs? I think the previous idea seems better since if a cli command fails (and it will) having the error output would be nice.

Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Traceback (most recent call last):
  File "/usr/share/miniconda/bin/fastrelease_conda_package", line 10, in <module>
    sys.exit(fastrelease_conda_package())
  File "/usr/share/miniconda/lib/python3.8/site-packages/fastcore/script.py", line 105, in _f
    tfunc(**merge(args, args_from_prog(func, xtra)))
  File "/usr/share/miniconda/lib/python3.8/site-packages/fastrelease/conda.py", line 168, in fastrelease_conda_package
    res = run(f"conda {build} --no-anaconda-upload {build_args} {name}")
  File "/usr/share/miniconda/lib/python3.8/site-packages/fastcore/xtras.py", line 174, in run
    if res.returncode: raise IOError(stdout)
OSError
Error: Process completed with exit code 1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.