question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create a asn1crypto-testdata pypi package + automate release

See original GitHub issue

Trying to run the unittests in my environment I could not get them to work:

[cooper:~/asn1crypto-0.22.0:]$ ~/virtualenvs/setup_py_fun/bin/python3 setup.py test
running test
running egg_info
writing asn1crypto.egg-info/PKG-INFO
writing dependency_links to asn1crypto.egg-info/dependency_links.txt
writing top-level names to asn1crypto.egg-info/top_level.txt
reading manifest file 'asn1crypto.egg-info/SOURCES.txt'
writing manifest file 'asn1crypto.egg-info/SOURCES.txt'
running build_ext
tests (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: tests (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
ModuleNotFoundError: No module named 'tests'


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
Test failed: <unittest.runner.TextTestResult run=1 errors=1 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=1 errors=1 failures=0>

Playing with setup.py now.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
coreycbcommented, Aug 24, 2017

Hi, I’m working on getting the asn1crypto package supported in main for Ubuntu, however it’ll be tough to get in to main without having any tests to run. Most python projects that I’ve dealt with include tests in their released tarballs, and I think it’s a worth the effort. It’s very useful for downstream distros, etc to ensure they’ve not regressed anything.

1reaction
cooperleescommented, Jun 22, 2017

Nice. Lets see if either of us gets time. Then we could make this main package have a tests_dep on the new package. This would allow have automatic unit test runs when we change our OS’s / libraries etc. etc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Starters Guide to Release your Python Package in PyPi
With the irelease library, you can easily release your package as it automates the steps of creating distribution archives, version checking, ...
Read more >
Automating PyPI releases with Github Actions - Caktus Group
Create a new Release in the Github UI. Step 2 kicks off a Github Action that will build your package and upload it...
Read more >
7. Releasing your package
The primary venue for releasing Python packages is the Python Package Index ( PyPI ) and it is releasing your package on PyPI...
Read more >
Packaging Python Projects
This tutorial walks you through how to package a simple Python project. It will show you how to add the necessary files and...
Read more >
Publish Package to PyPI and Release Version Automation ...
Manually creating tags, publishing the package and creating the GitHub release is time consuming... Tagged with github, python, package, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found