Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project dependencies may have API risk issues #32

Open
PyDeps opened this issue Oct 27, 2022 · 0 comments
Open

Project dependencies may have API risk issues #32

PyDeps opened this issue Oct 27, 2022 · 0 comments

Comments

@PyDeps
Copy link

PyDeps commented Oct 27, 2022

Hi, In NEAT-Flappy-Bird, inappropriate dependency versioning constraints can cause risks.

Below are the dependencies and version constraints that the project is using

numpy
pygame
neat-python
graphviz
matplotlib

The version constraint == will introduce the risk of dependency conflicts because the scope of dependencies is too strict.
The version constraint No Upper Bound and * will introduce the risk of the missing API Error because the latest version of the dependencies may remove some APIs.

After further analysis, in this project,
The version constraint of dependency graphviz can be changed to >=0.3,<=0.20.

The above modification suggestions can reduce the dependency conflicts as much as possible,
and introduce the latest version as much as possible without calling Error in the projects.

The invocation of the current project includes all the following methods.

The calling methods from the graphviz
graphviz.Digraph
The calling methods from the all methods
bird.jump
len
matplotlib.pyplot.grid
pipe.move
matplotlib.pyplot.figure
pygame.font.init
set.add
format
neat.Population.add_reporter
abs
birds.pop
pipe_ind.pipes.PIPE_TOP.get_width
statistics.get_species_sizes
statistics.get_fitness_mean
matplotlib.pyplot.subplot
round
draw_window
pipe.PIPE_TOP.get_width
str
bird.get_mask.overlap
os.path.join.pygame.image.load.convert_alpha
neat.Population.run
Pipe.remove
birds.index
neat.nn.FeedForwardNetwork.create
matplotlib.pyplot.savefig
ax.stackplot
set
bird.img.get_width
pygame.time.Clock.tick
matplotlib.pyplot.title
enumerate
pygame.display.set_mode
Bird
self.PIPE_TOP.get_height
blitRotateCenter
pipes.PIPE_TOP.get_width
pygame.image.load
matplotlib.pyplot.close
pygame.time.Clock
pygame.event.get
statistics.get_fitness_stdev
pygame.display.set_caption
pygame.display.update
os.path.dirname
os.path.join
neat.Population
range
bird.move
pipe.collide
matplotlib.pyplot.xlabel
pipe_ind.pipes.PIPE_BOTTOM.get_width
matplotlib.pyplot.ylabel
matplotlib.pyplot.legend
birds.append
pygame.quit
genome.connections.values
ge.pop
node_colors.get
matplotlib.pyplot.plot
pipe.draw
random.randrange
type
bird.img.get_height
Pipe
matplotlib.pyplot.subplots
surf.blit
Base
warnings.warn
quit
bird.get_mask
bird.birds.index.nets.activate
copy.copy
Pipe.append
win.blit
pygame.draw.line
nets.pop
matplotlib.pyplot.show
graphviz.Digraph.edge
pygame.transform.scale
run
node_names.get
nets.append
neat.StatisticsReporter
pygame.transform.scale2x
rem.append
self.set_height
neat.config.Config
Base.move
ge.append
print
matplotlib.pyplot.gca.set_yscale
pygame.font.SysFont
graphviz.Digraph
graphviz.Digraph.node
numpy.array
pygame.mask.from_surface
pygame.font.SysFont.render
STAT_FONT.render.get_width
pygame.transform.rotate
pygame.transform.rotate.get_rect
neat.StdOutReporter
Base.draw
graphviz.Digraph.render
pygame.transform.flip
bird.draw
image.get_rect
genome.nodes.keys
pygame.transform.scale2x.get_width
matplotlib.pyplot.gca

@developer
Could please help me check this issue?
May I pull a request to fix it?
Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant